inherited dtmda_StockPlace: Tdtmda_StockPlace
  OldCreateOrder = True
  Left = 389
  Top = 395
  Height = 371
  Width = 713
  inherited adsMaster: TADODataSet
    CursorType = ctStatic
    CommandText = 'select * from V_da_StockPlace where 0=1'
    Top = 48
    object adsMasterPosID: TStringField
      DisplayLabel = #20179#20301'ID'
      FieldName = 'PosID'
    end
    object adsMasterPosNo: TStringField
      DisplayLabel = #20179#20301#32534#30721
      FieldName = 'PosNo'
    end
    object adsMasterPosName: TStringField
      DisplayLabel = #20179#20301#21517#31216
      FieldName = 'PosName'
    end
    object adsMasterStockID: TStringField
      DisplayLabel = #20179#24211'ID'
      FieldName = 'StockID'
    end
    object adsMasterStockCode: TStringField
      DisplayLabel = #20179#24211#35268#21017#20195#30721
      FieldName = 'StockCode'
      ReadOnly = True
      Size = 40
    end
    object adsMasterDeptID: TStringField
      DisplayLabel = #20998#24215'ID'
      FieldName = 'DeptID'
    end
    object adsMasterHasStop: TBooleanField
      DisplayLabel = #31105#29992#21542
      FieldName = 'HasStop'
    end
    object adsMasterHasUse: TBooleanField
      DisplayLabel = #20351#29992#21542
      FieldName = 'HasUse'
    end
    object adsMasterHasSysDefine: TBooleanField
      DisplayLabel = #31995#32479#23450#20041#21542
      FieldName = 'HasSysDefine'
    end
    object adsMasterHasDefault: TBooleanField
      DisplayLabel = #40664#35748#21542
      FieldName = 'HasDefault'
    end
    object adsMasterStoper: TStringField
      DisplayLabel = #31105#29992#20154
      FieldName = 'Stoper'
    end
    object adsMasterStopDate: TDateTimeField
      DisplayLabel = #31105#29992#26085#26399
      FieldName = 'StopDate'
    end
    object adsMasterStopMemo: TStringField
      DisplayLabel = #31105#29992#35828#26126
      FieldName = 'StopMemo'
    end
    object adsMasterHasCheck: TBooleanField
      DisplayLabel = #23457#26680#21542
      FieldName = 'HasCheck'
    end
    object adsMasterChecker: TStringField
      DisplayLabel = #23457#26680#20154
      FieldName = 'Checker'
    end
    object adsMasterCheckTime: TDateTimeField
      DisplayLabel = #23457#26680#26102#38388
      FieldName = 'CheckTime'
    end
    object adsMasterWriter: TStringField
      DisplayLabel = #39318#36755#20154
      FieldName = 'Writer'
    end
    object adsMasterWriteTime: TDateTimeField
      DisplayLabel = #39318#36755#26102#38388
      FieldName = 'WriteTime'
    end
    object adsMasterModifier: TStringField
      DisplayLabel = #20462#25913#20154
      FieldName = 'Modifier'
    end
    object adsMasterModifyTime: TDateTimeField
      DisplayLabel = #20462#25913#26102#38388
      FieldName = 'ModifyTime'
    end
    object adsMasterRemark: TStringField
      DisplayLabel = #22791#27880
      FieldName = 'Remark'
      Size = 50
    end
  end
  inherited adsMasterEdit: TADODataSet
    CursorType = ctStatic
    CommandText = 'select * from da_StockPlace'
    object adsMasterEditPosID: TStringField
      DisplayLabel = #20179#20301'ID'
      FieldName = 'PosID'
    end
    object adsMasterEditPosNo: TStringField
      DisplayLabel = #20179#20301#32534#30721
      FieldName = 'PosNo'
    end
    object adsMasterEditPosName: TStringField
      DisplayLabel = #20179#20301#21517#31216
      FieldName = 'PosName'
    end
    object adsMasterEditStockID: TStringField
      DisplayLabel = #20179#24211'ID'
      FieldName = 'StockID'
    end
    object adsMasterEditres_StockName: TStringField
      DisplayLabel = #25152#23646#20179#24211
      FieldKind = fkLookup
      FieldName = 'res_StockName'
      LookupDataSet = res_Stock
      LookupKeyFields = 'StockID'
      LookupResultField = 'StockName'
      KeyFields = 'StockID'
      Lookup = True
    end
    object adsMasterEditDeptID: TStringField
      DisplayLabel = #20998#24215'ID'
      FieldName = 'DeptID'
    end
    object adsMasterEditres_DeptName: TStringField
      DisplayLabel = #25152#23646#20998#24215
      FieldKind = fkLookup
      FieldName = 'res_DeptName'
      LookupDataSet = adsDepartment
      LookupKeyFields = 'DeptID'
      LookupResultField = 'DeptName'
      KeyFields = 'DeptID'
      Size = 50
      Lookup = True
    end
    object adsMasterEditHasStop2: TBooleanField
      DisplayLabel = #31105#29992#21542
      FieldName = 'HasStop'
    end
    object adsMasterEditHasUse2: TBooleanField
      DisplayLabel = #20351#29992#21542
      FieldName = 'HasUse'
    end
    object adsMasterEditHasSysDefine: TBooleanField
      DisplayLabel = #31995#32479#23450#20041#21542
      FieldName = 'HasSysDefine'
    end
    object adsMasterEditHasDefault: TBooleanField
      DisplayLabel = #40664#35748#21542
      FieldName = 'HasDefault'
    end
    object adsMasterEditStoper2: TStringField
      DisplayLabel = #31105#29992#20154
      FieldName = 'Stoper'
    end
    object adsMasterEditStopDate: TDateTimeField
      DisplayLabel = #31105#29992#26085#26399
      FieldName = 'StopDate'
    end
    object adsMasterEditStopMemo2: TStringField
      DisplayLabel = #31105#29992#35828#26126
      FieldName = 'StopMemo'
    end
    object adsMasterEditHasCheck2: TBooleanField
      DisplayLabel = #23457#26680#21542
      FieldName = 'HasCheck'
    end
    object adsMasterEditChecker2: TStringField
      DisplayLabel = #23457#26680#20154
      FieldName = 'Checker'
    end
    object adsMasterEditCheckTime2: TDateTimeField
      DisplayLabel = #23457#26680#26102#38388
      FieldName = 'CheckTime'
    end
    object adsMasterEditWriter2: TStringField
      DisplayLabel = #39318#36755#20154
      FieldName = 'Writer'
    end
    object adsMasterEditWriteTime2: TDateTimeField
      DisplayLabel = #39318#36755#26102#38388
      FieldName = 'WriteTime'
    end
    object adsMasterEditModifier2: TStringField
      DisplayLabel = #20462#25913#20154
      FieldName = 'Modifier'
    end
    object adsMasterEditModifyTime2: TDateTimeField
      DisplayLabel = #20462#25913#26102#38388
      FieldName = 'ModifyTime'
    end
    object adsMasterEditRemark2: TStringField
      DisplayLabel = #22791#27880
      FieldName = 'Remark'
      Size = 50
    end
  end
  object adsStock: TADODataSet
    Connection = dtmConnect.conMain
    CursorType = ctStatic
    LockType = ltBatchOptimistic
    CommandText = 
      'select b.StockID, b.StockCode, b.Stockname from V_da_StockList b' +
      #13#10'  where isnull(b.HasStop,0)=0'#13#10'  order by b.StockCode'
    Parameters = <>
    Left = 176
    Top = 48
  end
  object adsUserCompany: TADODataSet
    Connection = dtmConnect.conMain
    LockType = ltBatchOptimistic
    CommandText = 
      'select b.DeptID, b.DeptCode, b.DeptName from xt_CompanySet a '#13#10'j' +
      'oin da_Department b on a.CompanyID=b.DeptID'#13#10'where a.UserID=(sel' +
      'ect UserID from xt_Users where UserCode=:UserCode)'#13#10'and isnull(b' +
      '.HasStop,0)=0'
    Parameters = <
      item
        Name = 'UserCode'
        Size = -1
        Value = Null
      end>
    Left = 288
    Top = 48
  end
  object adsDepartment: TADODataSet
    Active = True
    Connection = dtmConnect.conMain
    CursorType = ctStatic
    LockType = ltBatchOptimistic
    CommandText = 
      'select DeptID, DeptCode, DeptName, DeptFullName'#13#10' from V_da_Depa' +
      'rtment where DeptType=1'#13#10'order by DeptID'
    Parameters = <>
    Left = 176
    Top = 112
  end
  object res_Stock: TADODataSet
    Active = True
    Connection = dtmConnect.conMain
    CursorType = ctStatic
    LockType = ltBatchOptimistic
    CommandText = 'select StockID, StockCode, StockName from da_Stock'
    Parameters = <>
    Left = 288
    Top = 112
  end
end
